Lift revealed publication chips above neighboring cards (#1377)#1383
Merged
Conversation
On the landing page the horizontal publication card's .pub-download-links row (PDF/Cite/project chips) is only hidden with opacity:0, which still occupies layout space. The row can extend past the card's 129px box, and the landing grid is a flex-wrap row, so a card's chips can sit over the title of the card in the row below. With everything at the default stacking order the chips painted *behind* that content and looked tangled. Fix: on :hover/:focus-within, give the revealed chips position:relative and z-index:30 so they paint cleanly on top of whatever is below them. z-index is applied only on hover/focus, so the invisible (opacity:0) layer never sits over — and swallows clicks meant for — the card below. 30 clears the thumbnail (z-index:10) and award banner (z-index:20). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1377.
Problem
On the landing page, the horizontal publication card's
.pub-download-linksrow (PDF/Cite/project chips) is hidden withopacity:0, which still occupies layout space. That row can extend past the card's 129px box, and the landing grid is aflex-wraprow, so a card's revealed-on-hover chips can sit over the title of the card in the row below (or, in the last row, over "SEE ALL PAPERS"). At the default stacking order the chips painted behind that content and looked tangled — the reported "sometimes the chips overlap" (the "sometimes" being the variable stack height: author count, chip count, title length).Fix
On
:hover/:focus-within, give the revealed chipsposition: relativeandz-index: 30so they paint cleanly on top of whatever is below them instead of tangling behind it.z-indexis applied only on hover/focus, so the invisible (opacity:0) layer never sits over — and swallows clicks meant for — the card below. At-rest behavior is unchanged.30clears the existing thumbnail (z-index:10) and award banner (z-index:20) stacking.This fixes the layering (chips legible, on top); it intentionally doesn't reserve extra space, so the transient on-hover overlap itself remains by design.
Verification
:hoveron the chip-heavy "At the Intersection…" card: revealed chips now sit cleanly on top of the content below (before/after crop to be attached).:focus-withinpreserved). Pa11y landing-page findings are the pre-existing media-lesscolor-contrastnoise; none reference the touched selectors.Screenshot
🤖 Generated with Claude Code